//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.lbsapi.auth.tracesdk;

import java.util.Hashtable;

class i implements Runnable {
    LBSAuthManager f;
    int a;
    boolean b;
    String c;
    String d;
    Hashtable e;
    i(LBSAuthManager var1, int var2, boolean var3, String var4, String var5, Hashtable var6) {
        this.f = var1;
        this.a = var2;
        this.b = var3;
        this.c = var4;
        this.d = var5;
        this.e = var6;
    }

    public void run() {
        if(com.baidu.lbsapi.auth.tracesdk.a.a) {
            com.baidu.lbsapi.auth.tracesdk.a.a("status = " + this.a + "; forced = " + this.b + "checkAK = " + LBSAuthManager.a(this.f, this.c));
        }

        if(this.a != 601 && !this.b && this.a != -1 && !LBSAuthManager.a(this.f, this.c)) {
            if(602 == this.a) {
                if(com.baidu.lbsapi.auth.tracesdk.a.a) {
                    com.baidu.lbsapi.auth.tracesdk.a.a("authenticate wait  ");
                }

                LBSAuthManager.c().b();
            } else if(com.baidu.lbsapi.auth.tracesdk.a.a) {
                com.baidu.lbsapi.auth.tracesdk.a.a("authenticate else  ");
            }

            LBSAuthManager.a(this.f, (String)null, this.c);
        } else {
            if(com.baidu.lbsapi.auth.tracesdk.a.a) {
                com.baidu.lbsapi.auth.tracesdk.a.a("authenticate sendAuthRequest");
            }

            String[] var1 = com.baidu.lbsapi.auth.tracesdk.b.b(LBSAuthManager.b());
            if(com.baidu.lbsapi.auth.tracesdk.a.a) {
                com.baidu.lbsapi.auth.tracesdk.a.a("authStrings.length:" + var1.length);
            }

            if(var1 == null || var1.length <= 1) {
                LBSAuthManager.a(this.f, this.b, this.d, this.e, this.c);
                return;
            }

            if(com.baidu.lbsapi.auth.tracesdk.a.a) {
                com.baidu.lbsapi.auth.tracesdk.a.a("more sha1 auth");
            }

            LBSAuthManager.a(this.f, this.b, this.d, this.e, var1, this.c);
        }

    }
}
